Skip to content

Conversation

@dhartunian
Copy link

@dhartunian dhartunian commented Jan 23, 2025

In order to record observations into multiple histograms efficiently, it is helpful to be able to execute the findBucket call on the client-side and then use the bucket to update multiple histogram instances.

This change makes FindBucket and ObserveInternal public and introduces the HistogramInternal interface to expose them since Histogram itself is implemented by many implementations we want to avoid modifying.

Part of cockroachdb/cockroach#138932
Part of cockroachdb/cockroach#133306

In order to record observations into multiple histograms efficiently,
it is helpful to be able to execute the `findBucket` call on the
client-side and then use the bucket to update multiple histogram
instances.

This change makes `FindBucket` and `ObserveInternal` public and
introduces the `HistogramInternal` interface to expose them since
`Histogram` itself is implemented by many implementations we want to
avoid modifying.
Copy link

@kyle-a-wong kyle-a-wong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dhartunian dhartunian merged commit de5fb5f into v1.16.0-crdb-changes Jan 24, 2025
@dhartunian dhartunian deleted the open-up-histogram-api-1.16.0 branch January 24, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants